Ext.apply(MyDesktop.UserAdmin.prototype, {
	
    createColumnModel: function(sm) {
    	var cm = getUserColumnModel(sm);
    	cm.push({
				header: _('Last Login'),
				readOnly: true,
				dataIndex: 'lastLogin',
				renderer: renderUserDate,
				hidden: false
			});
    	
		return new Ext.grid.ColumnModel(cm);    	
    },  

    addReset: function() {
		return {
			text: _('Reset'),
			iconCls: 'reset_key',
			handler: function() {
				var grid = Ext.getCmp('userAdmGrid');
				if (grid.selModel.getCount()>0) {
					var selections = grid.selModel.getSelections();
				  	var prez = [];
				  	for(i = 0; i< grid.selModel.getCount(); i++){
						prez.push(selections[i].json.userid);
				  	}
				  	var encoded_array = Ext.encode(prez);
			
				  	var util = new Verbum.Utilities();
					util.request({
						el: grid.getEl(),
			            params: { 
			               action: "user_admin", 
			               ids:  encoded_array,
			               op: 'rpwd'
			              }											
					});
	
					util.on({
						'done': function(response) {
							obj = Ext.util.JSON.decode(response.responseText);
							Ext.Msg.info(obj.ret);
						}
					});				
	
				} else {
					Ext.Msg.message(_('Please, select an item from the list.'));
				}
			}
		}
	}
    
});